#include "drve_led.h"
#include "drv_beep.h"
#include "drv_systick.h"
#include "drv_key.h"
#include "drv_exit.h"
#include "drv_usart.h"
#include "drv_spi.h"
#include "drv_iic.h"
#include "drv_seg.h"
#include "drv_time.h"
#include "drv_sht20.h"
#include "drv_dma.h"
#include "drv_adc.h"
#include "oled.h"

//static uint8_t key_status=0;
	uint32_t dma_src[10];
	 uint32_t dma_drc[10];
uint16_t led_pwm=0;
uint8_t dir=0;
uint8_t t=0;
int main(void)
{
	NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);//中断组
	drv_systick_init(168);
	 
	beep_init();
	drv_key_int_u();
	drv_usart6_init();
	drv__exit9_int();
//	 drv_iic_init();
	drv_sht20_init();

	drv_time3_init();
	drv_sht20_rest();
    drve_led_int3();        
     printf("kk/n/r") ;

    while(1)  
    {  
         
        if(GPIO_ReadInputDataBit(GPIOA, GPIO_Pin_4) == Bit_SET)  
        {  
            drve_led_open3(); 
		}
        else  
        {  
            drve_led_close3(); 
        }  

     
    }  

	
}







